package com.avalon.core.model;

import com.avalon.core.context.Context;
import com.avalon.core.service.AbstractService;
import lombok.Data;

@Data
public class Menu implements IView {

    private Integer id;

    private String name;

    private String label;

    private String serviceName;

    private Integer parentId;

    private String parentName;

    private Integer sequence;

    private Integer actionId;

    private String actionName;

    @Override
    public StringBuilder getSql() {
        AbstractService menuService = getService();

        return null;
    }

    @Override
    public AbstractService getService() {
        return Context.getServiceBeanInstance("base.menu");
    }
}
